package com.virtium.vpc.dao;

import java.util.List;

import com.virtium.vpc.hibernate.model.VpcDensity;

public class TestHibernate {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		VpcProductDAO objectDAO = DAOFactory.getInstance()
				.getVpcProductDAO();
		try {
			List ls = objectDAO.queryString("from VpcProduct product where product.technologyId = 1	and product.densityId = 1 and product.formFactorId=2");
			System.out.println(ls.size());
		} catch (Exception e) {
			System.out.println(e.getMessage());
		}
	}

}
